<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>TODO supply a title</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div>
            <table width="90%" border="0" cellpadding="0" cellspacing="2" align="center">
                <tr> 
                    <td colspan="2" height="21" align="center"><h1>产品报废出库单</h1></td>
                </tr>
                <tr> 
                    <td colspan="2" align="right">
                        打印日期: {date('Y-m-d')}
                    </td>
                </tr>
                <tr>

                    <td colspan="2">

                        <table width="100%" border="1" cellspacing="0" cellpadding="2" align="center" bordercolor="#000000">
                            <tr>
                                <th height="30">ID</th>
                                <th>货号</th>
                                <th>产品名称</th>
                                <th>退货日期</th>
                                <th>数量</th>
                                <th>操作人</th>
                                <th>出库</th>
                                <th>备注</th>
                            </tr>
                            {loop $list as $var}
                            <tr>
                                <td height="25">{sprintf("%06d",$var.id)}</td>
                                <td>{$var.code}</td>
                                <td>{$var.name}</td>
                                <td align="center">{date('Y-m-d',$var.create)}</td>
                                <td align="center">{$var.quantity;$quantity+=$var.quantity}</td>
                                <td align="center">{$var.realname}</td>
                                <td align="center">{$var.w_name}</td>
                                <td align="center">{$var.remark}</td>
                            </tr>
                            {/loop}
                        </table>
                    </td>
                </tr>
                <tr> 
                    <td colspan="2" align="right" height="25">
                        合计退货:  {$quantity}
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="2" align="center">
                            <tr> 
                                <td height="21" align="left" width="50%">
                                    {$base.company}
                                </td>
                                <td align="right" width="50%">
                                    打印: {$member.realname}
                                </td>
                            </tr>
                        </table></td>
                </tr>
            </table>
        </div>
    </body>
</html>
